Apple, the Apple logo, and Macintosh are registered trademarks of Apple Computer, Inc.
Mac and OpenDoc are trademarks of Apple Computer, Inc.
Introduction
One of the methods which part editors which support embedding may need to override is RequestEmbeddedFrame.
As part of this recipe the part editor will probably want to put the general functionality of creating a frame for embedding into another method, say CreateEmbeddedFrame, which would be called from RequestEmbeddedFrame. Note that RequestEmbeddedFrame should only be called by an embedded part on its containing part in order to get a sibling frame. That is why this call takes a baseFrame parameter. The baseFrame must already be embedded inside the part receiving the RequestEmbeddedFrame message. The CreateEmbeddedFrame method is used in the Clipboard and Insert… recipes.
Caveats
• This code assumes the containing part is not picky about the requested frameShape and externalTransform, and always returns the requested embedded frame.
• It does not contain proper error checking
• It assumes all embedded frames are kept in a single list